package MainProgram;

import java.util.Arrays;

/**
 * Represents the simple data structure.
 * @author Zbyszko
 */
public class SimpleDataCreator implements DataCreator {

    double[][] trainingSet = {
        {1.0, 0.0, 0.0, 0.0},
        {0.0, 1.0, 0.0, 0.0},
        {0.0, 0.0, 1.0, 0.0},
        {0.0, 0.0, 0.0, 1.0},
       // { 0.0, 0.0 }, { 1.0, 0.0 }, { 0.0, 1.0 }, { 1.0, 1.0 }

    };
    //double[][] desiredOutput = { { 0.0 }, { 1.0 }, { 1.0 }, { 0.0 } };
    double[][] desiredOutput = trainingSet.clone();
    
    /**
     * Returns the set of training values.
     * @return 
     */
    @Override
    public double[][] getTrainingSet() {
        return this.trainingSet;
    }

    /**
     * Returns the set of desired outputs values.
     * @return 
     */
    @Override
    public double[][] getDesiredOutput() {
        return this.desiredOutput;
    }

    @Override
    public String toString() {
        return "SimpleDataCreator{" 
                + "\n\ttrainingSet=" + Arrays.toString(trainingSet) + 
                ", \n\tdesiredOutput=" + Arrays.toString(desiredOutput) + 
                "\n\t}";
    }
    
    
}
